import request from '@/utils/request'

// 初始化数据
export function initData() {
  return request({
    url: '/sys/elastic/initData',
    method: 'get'
  })
}

// 查询数据
export function searchData(query) {
  return request({
    url: '/sys/elastic/searchData',
    method: 'get',
    params: query
  })
}

// 懒加载树节点
export function loadTreeChild(query) {
  return request({
    url: '/sys/elastic/loadTreeChild',
    method: 'get',
    params: query
  })
}

